<template>
	<view class="info">

		<view class="latest msgList">
			<view class="title">最新消息</view>
			<scroll-view class="list" :scroll-y="true">
				<!-- <view class="msg-item" v-for="i in 100" > 
				  {{ i }}
				</view> -->
			</scroll-view>
		</view>

		<view class="fortnight-ago msgList">
			<view class="title">两周前消息</view>
			<scroll-view class="list" :scroll-y="true"></scroll-view>
		</view>

		<tabarea>

			<view class="tap-area-slot">


				<view class="title title-one">
					<navigator url="/pages/info/list">
						<text> 客服问题 </text>
					</navigator>
				</view>


				<view class="divider"></view>

				<text class="title">
					一键已读
				</text>
			</view>
		</tabarea>

		<Custom-tab-bar :current="2" />
	</view>
</template>

<script>
	import CustomTabBar from '../../components/custom-tab-bar.vue';
	import tabarea from '../../components/taparea.vue'
	export default {
		components: {
			tabarea,
			CustomTabBar
		},
		data() {
			return {
				title: '消息页面'
			}
		},
		onLoad() {
			uni.hideTabBar({
				animation: false
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.info {
		padding: 40rpx 20rpx;

		.msgList {
			background-color: rgba(0, 0, 0, 0.6);
			padding: 10rpx 0;
			margin-bottom: 12rpx;
			border-radius: 12rpx;

			.title {
				font-size: 40rpx;
				color: white;
				text-indent: 1em;
			}

			.list {
				height: 400rpx;
				color: white;
				background: #2f2f2f;

				.msg-item {
					width: 100%;
					height: 80rpx;
					text-indent: 2em;
				}
			}
		}

		.tap-area {
			margin: 120rpx 0 80rpx 0;

			.tap-area-slot {
				display: flex;
				align-items: center;

				.title {
					flex: 1;
					font-size: 46rpx;
					color: white;
					background: #2f2f2f;
                    padding: 8rpx;
					border-radius: 8rpx;
					.sub {
						font-size: 16rpx;
					}
				}

				.divider {
					width: 4rpx;
					height: 100rpx;
					background-color: rgba(0, 0, 0, .9);
				}
			}
		}
	}
</style>